package com.wg.system.entity;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wg.common.annotation.ExcelDictFormat;
import com.wg.common.core.domain.BaseEntity;
import com.wg.common.excel.ExcelDictConvert;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 参数配置表(SysConfig)实体类
 *
 * @author wg
 * @date 2022-04-22 14:48:37
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_config")
@ExcelIgnoreUnannotated
public class SysConfig extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 参数主键
     */
    @TableId(type = IdType.AUTO)
    @ExcelProperty(value = "参数主键")
    private Integer id;

    /**
     * 参数名称
     */
    @ExcelProperty(value = "参数名称")
    private String configName;

    /**
     * 参数键名
     */
    @ExcelProperty(value = "参数键名")
    private String configKey;

    /**
     * 参数键值
     */
    @ExcelProperty(value = "参数键值")
    private String configValue;

    /**
     * 系统内置（Y是 N否）
     */
    @ExcelProperty(value = "系统内置", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_yes_no")
    private String configType;

}

